//
//  LBWDiscoverTableViewController.swift
//  weibo
//
//  Created by Limonwei on 15/12/5.
//  Copyright © 2015年 heima. All rights reserved.
//

import UIKit

class LBWDiscoverTableViewController: LBWVisitorTableViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        //未登录访客视图
        if !userLogin {
            
            visitorView?.setVisitorInto("visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            
            return
        }
        
        setupUI()
    }
    
    //设置搜索框视图
    func setupUI(){
        
        let searchView = LBWDiscoverSearchView.searchView()
        
        //设置frame
        searchView.frame = CGRect(x: 0, y: 0, width: UIScreen.mainScreen().bounds.width, height: 35)
        
        //标题视图赋值为搜索框
        navigationItem.titleView = searchView
        
    }

}
